package com.cash.channel.svc.util;


import com.cash.channel.api.model.repay.WdOrderInfoModel;

import java.util.Comparator;


public class SortWdOrderDate implements Comparator {

    @Override
    public int compare(Object o1, Object o2) {
        WdOrderInfoModel t1 = (WdOrderInfoModel) o1;
        WdOrderInfoModel t2 = (WdOrderInfoModel) o2;

        return t1.getDCreate().compareTo(t2.getDCreate());
    }
}
